﻿using UnityEditor;
using UnityEngine;

public class FunctionTab
{
    AnimationClipEvent data;
    Vector2 scrollPos;
    public FunctionTab(AnimationClipEvent data)
    {
        this.data = data;
    }
    public void Draw()
    {
        scrollPos = EditorGUILayout.BeginScrollView(scrollPos);
        {
            foreach (var item in data.functionEditors)
            {
                EditorGUILayout.BeginVertical("Box");
                {
                    EditorGUILayout.LabelField("方法名称", item.Key);
                    for (int i = 0; i < item.Value.Length; i++)
                    {
                        
                        EditorGUILayout.LabelField(data.paramterEditors[item.Key][i], item.Value[i].Name);
                    }
                }
                EditorGUILayout.EndVertical();
            }
        }
        EditorGUILayout.EndScrollView();
    }


}
